from rest_framework import serializers
from goods.models import GoodVisitCount


class UserGoodsSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField(read_only=True)
    class Meta:
        model = GoodVisitCount
        fields = ("count", "category")